<div class="panel panel-default weibo">
<div class="panel-heading">唠唠叨叨</div>
<div class="panel-body">
<div class="weiform">
<form id="comm-form" method="post" action="{SITE_URL}index.php?app=weibo&ac=add">
<textarea name="content" placeholder="说点啥..."></textarea>
    <input type="hidden" name="token" value="{$_SESSION['token']}" />
<input type="submit" value="发送" />
</form>
</div>

<div class="clear"></div>
    <div class="weilist">
<ul id="weibolist">
{loop $arrWeibo $key $item}
<li>
<span class="portrait"><a href="{tsUrl('user','space',array('id'=>$item['user']['userid']))}"><img align="absmiddle" class="SmallPortrait img-rounded" title="{$item['user']['username']}" alt="{$item['user']['username']}" src="{$item['user']['face']}"></a></span>
<span class="body">
<span class="user"><a href="{tsUrl('user','space',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a>：</span><span class="log">{$item['content']}</span>
{if $item[photo]}
<div style="padding:5px 0;"><a target="_blank" href="{tsUrl('weibo','show',array('id'=>$item['weiboid']))}"><img src="{php echo tsXimg($item['photo'],'weibo',240,'',$item['path'])}" width="120" alt="{$item['user']['username']}的唠叨图片" /></a>
</div>
{/if}
<span class="time">{php echo getTime(strtotime($item['addtime']),time())} (<a href="{tsUrl('weibo','show',array('id'=>$item['weiboid']))}">{$item['count_comment']}评</a>)
</span>
</span>
<div class="clear"></div>
</li>
{/loop}
</ul>
</div>
</div>
</div>